package com.yc.boot.log.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Set;

/**
 * @author 杨智杰
 * @since 2021/8/12 10:33
 */
@Data
@Configuration
@ConfigurationProperties("web-log-config")
public class WebLogConfig {

    @Value("${web-log-config.is-out:true}")
    private Boolean isOut;

    @Value("${web-log-config.max-length:1024}")
    private Integer maxLength;

    @Value("${web-log-config.db-save:true}")
    private Boolean dbSave;

    @Value("${server.servlet.context-path:}")
    private String contextPath;

    private Set<String> blackListPath;

}
